package com.edu.exam.enums.quality.monitoring;

import com.edu.exam.enums.core.BaseEnum;

/**
 * 权限级别枚举
 */
public enum PermissionLevel implements BaseEnum {
    SYSTEM("SYSTEM", "系统级"),
    ORGANIZATION("ORGANIZATION", "组织级"),
    DEPARTMENT("DEPARTMENT", "部门级"),
    MAJOR("MAJOR", "专业级"),
    CLASS("CLASS", "班级级"),
    COURSE("COURSE", "课程级"),
    EXAM("EXAM", "考试级"),
    PAPER("PAPER", "试卷级"),
    QUESTION("QUESTION", "题目级"),
    USER("USER", "用户级"),
    ROLE("ROLE", "角色级"),
    PERSONAL("PERSONAL", "个人级"),
    PUBLIC("PUBLIC", "公共级"),
    PRIVATE("PRIVATE", "私有级"),
    PROTECTED("PROTECTED", "保护级");

    private final String code;
    private final String description;

    PermissionLevel(String code, String description) {
        this.code = code;
        this.description = description;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getDescription() {
        return description;
    }
}
